package cn.yj.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 永健
 * @since 2022-02-09 09:45
 */
@Configuration
public class OrderQueueConfig {
    @Bean(name = "ORDER_QUEUE")
    public Queue queue(){
        return new Queue("ORDER_QUEUE",true,false,false);
    }
}
